package com.csii.branch.service.impl;

import cn.hutool.core.date.DateTime;
import com.csii.branch.controller.vo.BranchLoanStatVo;
import com.csii.branch.mapper.entity.CdBranchStatLoan;
import com.csii.branch.mapper.CdBranchStatLoanMapper;
import com.csii.branch.service.ICdBranchStatLoanService;
import org.springframework.stereotype.Service;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

import java.util.Date;
import java.util.List;

/**
 * @Description: 网点贷款统计
 * @Author: power-stdio
 * @Date:   2020-12-21
 * @Version: V1.0
 */
@Service
public class CdBranchStatLoanServiceImpl extends ServiceImpl<CdBranchStatLoanMapper, CdBranchStatLoan> implements ICdBranchStatLoanService {
    @Override
    public List<BranchLoanStatVo> statGroupByDaily(String netId, Date from , Date end){
        return baseMapper.statGroupByDaily(netId, from, end);
    }
    @Override
    public List<BranchLoanStatVo> statGroupByType(String netId, Date from , Date end){
        return baseMapper.statGroupByType(netId, from, end);
    }
    @Override
    public List<BranchLoanStatVo>  statGroupByPidDaily(String pId, DateTime from, DateTime end){
        return baseMapper.statGroupByPidDaily(pId,from,end);
    }
}
